package com.clp.inflxudb.core;

/**
 * 一个FluxContext代表一个Flux上下文
 */
public interface FluxContext {
    static FluxContext getInstance() {
        return new FluxContextImpl();
    }

    FluxContext importLib(FluxLib lib);

    FluxContext importLibs(FluxLib... libs);

    FluxContext putFlux(String fluxName, Flux flux);

    FluxContext removeFlux(String fluxName);

    String yield(String fluxName);

    String yield(String fluxName, String yieldName);
}
